//
//  ZCAddressViewModel.h
//  ZCJZ
//
//  Created by sujeking on 2019/2/28.
//  Copyright © 2019年 jeking. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SKWebServiceErrorCode.h"
@interface ZCAddressViewModel : NSObject

/// 查询自己的地址
+ (void)fetchMyAddressListWithKeywords:(NSString *)keywords
                              complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 查询地址列表
+ (void)fetchAreaListWithPid:(NSString *)pid
                    complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 查询银行卡地址列表
+ (void)fetchPayAreaListWithPid:(NSString *)pid
                       complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;


/// 保存地址
+ (void)saveAreaListWithAddress:(id)model
                       complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;
/// 删除地址
+ (void)removeAddressWithDict:(NSDictionary *)dict
                     complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

@end
